<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        /* body {
            overflow: hidden;
        }
        #box {
            margin-top: 200px;
            height: 500px;
            overflow: scroll;
        } */

        lazy-image {
            display: block;
            width: 100%;
            height: 400px;
            border: 1px solid #f00;
        }

        .mark {
            position: absolute;
            left: 0;
            top: 0;
            width: 100px;
            height: 100px;
        }
        .pox {
            height: 50px;
            background: #500;
            text-align: center;
            line-height: 50px;
            color: #fff;
        }
        .ainmation-height {
            animation: aHeight 1s;
        }
        @keyframes aHeight {
            from {
                height: 0;
            }
            to {
                height: 100%;
            }
        }
    </style>
</head>
<body>

    <div id="box">
        <lazy-image v-for="(item, index) in list" src="https://desk-fd.zol-img.com.cn/t_s960x600c5/g5/M00/0E/05/ChMkJlvpMUyIeQsIABN-cMprEdQAAtHpANOjKAAE36I218.jpg">

        </lazy-image>
      
    </div>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="../src/index.js"></script>
    
    <script>
        new Vue({
            el: '#box',
            data: {
                list: [1,2,3,4,5],
            },
            mounted() {
                this.lazy = new LazyLoad(window);
                setTimeout(() => {
                    this.list.push(6,7,8,9,0);
                    this.lazy.update();
                }, 2000);
            },
        })
    </script>

</body>
</html>